package ModelLag;


/**
 * The Copy class creates an object of the type Copy.
 * 
 * @author (Lackshan, Mikkel, Nick, patrick, Simon, Yousef) 
 * @project (Tema design)
 * @version (2014.11.04)
 */
public class Copy
{
    private String serialNumber;
    private String purchaseDate;
    private double purchasePrice;
    private boolean state;
    
    /**
     * Constructor for objects of class Copy
     */
    public Copy(String serialNumber, String purchaseDate, double purchasePrice){    
        this.serialNumber = serialNumber;
        this.purchaseDate = purchaseDate;
        this.purchasePrice = purchasePrice;
    }
      
    /**
     * Returns the serialnumber of the copy
     */
    public String getSerialNumber(){
        return serialNumber;
    }
    
    /**
     * Returns the pruchase date of the copy
     */
    public String getPurchaseDate(){
        return purchaseDate;
    }
    
    /**
     * Return the purchasePrice of the copy
     */
    public double getPurchasePrice(){
        return purchasePrice;
    }
    
    /**
     * Return the state of the copy
     */
    public boolean getState(){
        return state;
    }
    
    /**
     * Set´s the state of the copy
     * 
     * @param b the state of the copy (true if lent out / false if not lent out)
     */
    
    public void setState(boolean b){
        state = b;
    }
}
